package com.tiantian.system.service.impl;

import com.tiantian.system.domain.entity.SysLogininfor;
import com.tiantian.system.mapper.SysLogininforMapper;
import com.tiantian.system.service.SysAccessLogService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author tiantian
 */
@Service
@RequiredArgsConstructor
public class SysAccessLogServiceImpl implements SysAccessLogService {

    private final SysLogininforMapper sysLogininforMapper;

    @Override
    public List<SysLogininfor> selectAccessLogList(SysLogininfor logininfor) {
        return sysLogininforMapper.list(logininfor);
    }

    @Override
    public int deleteOperLogByIds(List<Long> aceIds) {
        return sysLogininforMapper.deleteBatchIds(aceIds);
    }

    @Override
    public void cleanLog() {
        sysLogininforMapper.clear();
    }
}
